package com.lakeworks.event;

import com.lakeworks.common.enums.RobotType;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * 进洗涤车间事件
 */
@Getter
public class WashingEvent extends ApplicationEvent {

    private String barcode;

    public WashingEvent(Object source, String barcode) {
        super(source);
        this.barcode = barcode;
    }

    public RobotType getRobotType() {
        return RobotType.AUTO_PRODUCT_WASHING;
    }

    public void setBarcode(String barcode) {
        this.barcode = barcode;
    }
}
